﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace furion.blog.Domain.MySQL
{
    /// <summary>
    /// 
    ///</summary>
    [SugarTable("dept")]
    public class Dept
    {
        /// <summary>
        ///  
        ///</summary>
         [SugarColumn(ColumnName="dept_id" ,IsPrimaryKey = true   )]
         public long DeptId { get; set; }
        /// <summary>
        /// 部门名称 
        ///</summary>
         [SugarColumn(ColumnName="dept_name"    )]
         public string DeptName { get; set; }
        /// <summary>
        /// 部门英文 
        ///</summary>
         [SugarColumn(ColumnName="dept_en"    )]
         public string DeptEn { get; set; }
        /// <summary>
        /// 上级部门(顶层：0) 
        ///</summary>
         [SugarColumn(ColumnName="parent_id"    )]
         public long? ParentId { get; set; }
        /// <summary>
        /// 等级路径 
        ///</summary>
         [SugarColumn(ColumnName="ancestors"    )]
         public string Ancestors { get; set; }
        /// <summary>
        /// 部门主管 
        ///</summary>
         [SugarColumn(ColumnName="leader"    )]
         public string Leader { get; set; }
        /// <summary>
        /// 部门电话 
        ///</summary>
         [SugarColumn(ColumnName="phone"    )]
         public string Phone { get; set; }
        /// <summary>
        /// 排序 
        ///</summary>
         [SugarColumn(ColumnName="order_num"    )]
         public int? OrderNum { get; set; }
        /// <summary>
        /// 创建人 
        ///</summary>
         [SugarColumn(ColumnName="created_by"    )]
         public long? CreatedBy { get; set; }
        /// <summary>
        /// 创建时间 
        ///</summary>
         [SugarColumn(ColumnName="created_time"    )]
         public DateTime? CreatedTime { get; set; }
        /// <summary>
        /// 修改人 
        ///</summary>
         [SugarColumn(ColumnName="updated_by"    )]
         public long? UpdatedBy { get; set; }
        /// <summary>
        /// 修改时间 
        ///</summary>
         [SugarColumn(ColumnName="updated_time"    )]
         public DateTime? UpdatedTime { get; set; }
        /// <summary>
        /// 状态 
        ///</summary>
         [SugarColumn(ColumnName="status"    )]
         public string Status { get; set; }
        /// <summary>
        /// 是否删除 
        ///</summary>
         [SugarColumn(ColumnName="is_delete"    )]
         public string IsDelete { get; set; }
    }
}
